﻿<?=$this->load->view('include_header',null)?>
	<div id="top-panel">
		<div id="panel">
			<ul>
				<li class="current"><a href="<?=site_url('archive/idcard/'.$id)?>" class="report"><?=(empty($id))?"录入新":"编辑"?>客户基本信息</a></li>
				
			</ul>
		</div>
	</div>
	<div id="wrapper">
		<div id="content">
			<div id="box">
			<form id="form" method="POST" action="<?=site_url('archive/cd_update/'.$cateid)?>">
			<fieldset>
			<legend>存款单 Deposit Receipt</legend>
			
			<label>存单号<br>No:</label><input type="text" name="certificate_no" value="<?=@$info->certificate_no?>" /> <br />     <br>
			<label>交易日期/存入日期<br> Depoist Date:</label><input type="text" name="transaction_date" id="transaction_date" value="<?=@$info->transaction_date?>" /> <br /><br>
			<label>起息日<br> Value Date:</label><input type="text" name="value_date" id="value_date" value="<?=@$info->value_date?>" /> <br /> <br>
			<label>存款种类<br> Type of Deposit:</label><input type="text" name="nature" value="<?=@$info->nature?>" /> <br /> <br>
			<label>支付方式<br> S.C.:</label><input type="text" name="sc" value="<?=@$info->sc?>"/> <br />   <br>
			<label>通兑<br> Universal Withdrawing:</label><input type="text" name="free_dep" value="<?=@$info->free_dep?>"/> <br /><br>
			<label>存期<br> Term:</label><input type="text" name="term" value="<?=@$info->term?>"/> <br />  <br>
			<label>约定转存<br> Redeposit by agreement::</label><input type="text" name="re_dep_term" value="<?=@$info->re_dep_term?>"/> <br /><br>
			<label>年利率<br> Annual Rate%:</label><input type="text" name="annual_rate" value="<?=@$info->annual_rate?>"/> <br />  <br>
			<label>到期日<br> Due Date:</label><input type="text" name="due_date" id="due_date" value="<?=@$info->due_date?>"/> <br /> <br>
			<label>利息<br> Interest Due:</label><input type="text" name="interest_due" value="<?=@$info->interest_due?>"/> <br />   <br>
			<label>经办柜员<br> Oper.:</label><input type="text" name="oper" value="<?=@$info->oper?>"/> <br /><br>
			<label>账号 <br>A/C NO. :</label><input type="text" name="ac_no" value="<?=@$info->ac_no?>"/> <br />  <br>
			<label>户名<br> Depositor:</label><input type="text" name="depositor" value="<?=@$info->depositor?>"/> <br /> <br>
			<label>原始账号<br> Original A/C NO.:</label><input type="text" name="original_ac_no" value="<?=@$info->original_ac_no?>"/> <br /> <br>
			<label>金额<br> Amount:</label><input type="text" name="amount" value="<?=@$info->amount?>" />RMB <br />     <br>
			<label>银行名称<br>Issued By:</label><input type="text" name="issued_by" size="40" value="<?=@$info->issued_by?>" /> <br />   <br>
			
			<input type="hidden" name="id" value="<?=$id?>" />
			<input id="button1" type="submit" value="提交信息 Continue" />
			<input id="button2" type="reset" value="重置 Cancel" />
			</fieldset>
			</form>
			</div>

		</div>
		
		<?=$this->load->view('include_sidebar',array('id'=>$id,'forms'=>$forms))?>
	</div>

	<script type="text/javascript">
	$().ready(function() {
	  $("#form").validate({
		rules: {
			certificate_no:{
			 required:true
			},
			ac_no:{
			 required:true
			},
			depositor:{
			 required:true
			},
			original_ac_no:{
			 required:true
			},
			amount:{
			 required:true
			}
		}
	  });
		$( "#transaction_date" ).datepicker({
			changeMonth: true,
			changeYear: true,
			showOn: "both",
			buttonImage: "images/calendar.gif",
			buttonImageOnly: true

		});
		$( "#value_date" ).datepicker({
			changeMonth: true,
			changeYear: true,
			showOn: "both",
			buttonImage: "images/calendar.gif",
			buttonImageOnly: true

		});
		$( "#due_date" ).datepicker({
			changeMonth: true,
			changeYear: true,
			showOn: "both",
			buttonImage: "images/calendar.gif",
			buttonImageOnly: true

		});
	});
	</script>
	
<?=$this->load->view('include_footer',null)?>
